package com.yjj.springboot3.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yjj.springboot3.model.entity.PostThumb;
import com.yjj.springboot3.model.entity.User;

/**
* @author 王洪顺
* @description 针对表【post_thumb(帖子点赞)】的数据库操作Service
* @createDate 2025-04-20 19:13:34
*/
public interface PostThumbService extends IService<PostThumb> {
    /**
     * 点赞
     *
     * @param postId
     * @param loginUser
     * @return
     */
    int doPostThumb(long postId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     *
     * @param userId
     * @param postId
     * @return
     */
    int doPostThumbInner(long userId, long postId);
}
